Ping a device to test the connection between the switch and another network device. After you ping a device, the switch sends an Internet Control Message Protocol (ICMP) packet to the target device. If the device receives the packet, it sends a ping reply. After the switch receives the reply, displays a message that indicates traffic can reach the specified IP address. If the switch does not receive a reply, the message indicates the address is not responding.
Note
Command parameters for ping vary depending on the parameter input order. All syntax possibilities are not listed. Use the CLI help to verify the syntax for available parameters during command contextual input.
ping WORD<0-256>
ping WORD<0-256> count <1-9999>
ping WORD<0-256> count <1-9999> mgmt [clip | oob | vlan]
ping WORD<0-256> -d
ping WORD<0-256> datasize <28-51200>
ping WORD<0-256> datasize <28-51200> mgmt [clip | oob | vlan]
ping WORD<0-256> grt
ping WORD<0-256> grt interface gigabitEthernet {slot/port[sub-port]}
ping WORD<0-256> grt interface tunnel <1-2000>
ping WORD<0-256> grt interface vlan <1-4059>
ping WORD<0-256> grt source WORD<1-256>
ping WORD<0-256> -I <1-60>
ping WORD<0-256> interface gigabitEthernet {slot/port[sub-port]}
ping WORD<0-256> interface tunnel <1-2000>
ping WORD<0-256> interface vlan <1-4059>
ping WORD<0-256> mgmt [clip | oob | vlan]
ping WORD<0-256> -s
ping WORD<0-256> -s mgmt [clip | oob | vlan]
ping WORD<0-256> scopeid <1-9999>
ping WORD<0-256> source WORD<1-256>
ping WORD<0-256> -t <1-120>
ping WORD<0-256> -t <1-120> mgmt [clip | oob | vlan]
ping WORD<0-256> vrf WORD<1-16>
ping WORD<0-256> vrf WORD<1-16> interface gigabitEthernet {slot/port[sub-port]}
ping WORD<0-256> vrf WORD<1-16> interface tunnel <1-2000>
ping WORD<0-256> vrf WORD<1-16> interface vlan <1-4059>
ping WORD<0-256> vrf WORD<1-16> source WORD<0-256>
tunnel: Specifies the tunnel interface.
vlan: Specifies the VLAN ID in the range of 1 to 4059. By default, VLAN IDs 1 to 4059 are configurable and the system reserves VLAN IDs 4060 to 4094 for internal use. If you enable VRF scaling and SPBM mode, the system also reserves VLAN IDs 3500 to 3998. VLAN ID 1 is the default VLAN and you cannot create or delete VLAN ID 1.
None
User EXEC
The -d, -I, interface, scopeid, source, and vrf parameters are not available if you specify the mgmt keyword.